package com.tyk.bookstore.front.member.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.front.common.core.model.enume.BaseEnum;

public enum MemberState implements BaseEnum {
    ALL(-1),
    ABLE(0),
    DISABLE(1),
    CANCEL(2);
    
    @JsonValue
    private final Integer code;

    @Override
    public Integer value() {
        return this.code;
    }

    MemberState(Integer code) {
        this.code = code;
    }
}
